﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013CB RID: 5067
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyAddBuildDynamicBuffScRsp : IMessage<TrainPartyAddBuildDynamicBuffScRsp>, IMessage, IEquatable<TrainPartyAddBuildDynamicBuffScRsp>, IDeepCloneable<TrainPartyAddBuildDynamicBuffScRsp>, IBufferMessage
	{
		// Token: 0x17003FDF RID: 16351
		// (get) Token: 0x0600E2E2 RID: 58082 RVA: 0x0025E80D File Offset: 0x0025CA0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyAddBuildDynamicBuffScRsp> Parser
		{
			get
			{
				return TrainPartyAddBuildDynamicBuffScRsp._parser;
			}
		}

		// Token: 0x17003FE0 RID: 16352
		// (get) Token: 0x0600E2E3 RID: 58083 RVA: 0x0025E814 File Offset: 0x0025CA14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyAddBuildDynamicBuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003FE1 RID: 16353
		// (get) Token: 0x0600E2E4 RID: 58084 RVA: 0x0025E826 File Offset: 0x0025CA26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyAddBuildDynamicBuffScRsp.Descriptor;
			}
		}

		// Token: 0x0600E2E5 RID: 58085 RVA: 0x0025E82D File Offset: 0x0025CA2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyAddBuildDynamicBuffScRsp()
		{
		}

		// Token: 0x0600E2E6 RID: 58086 RVA: 0x0025E835 File Offset: 0x0025CA35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyAddBuildDynamicBuffScRsp(TrainPartyAddBuildDynamicBuffScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.buffId_ = other.buffId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E2E7 RID: 58087 RVA: 0x0025E866 File Offset: 0x0025CA66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyAddBuildDynamicBuffScRsp Clone()
		{
			return new TrainPartyAddBuildDynamicBuffScRsp(this);
		}

		// Token: 0x17003FE2 RID: 16354
		// (get) Token: 0x0600E2E8 RID: 58088 RVA: 0x0025E86E File Offset: 0x0025CA6E
		// (set) Token: 0x0600E2E9 RID: 58089 RVA: 0x0025E876 File Offset: 0x0025CA76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003FE3 RID: 16355
		// (get) Token: 0x0600E2EA RID: 58090 RVA: 0x0025E87F File Offset: 0x0025CA7F
		// (set) Token: 0x0600E2EB RID: 58091 RVA: 0x0025E887 File Offset: 0x0025CA87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x0600E2EC RID: 58092 RVA: 0x0025E890 File Offset: 0x0025CA90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyAddBuildDynamicBuffScRsp);
		}

		// Token: 0x0600E2ED RID: 58093 RVA: 0x0025E89E File Offset: 0x0025CA9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyAddBuildDynamicBuffScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.BuffId == other.BuffId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E2EE RID: 58094 RVA: 0x0025E8DC File Offset: 0x0025CADC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E2EF RID: 58095 RVA: 0x0025E934 File Offset: 0x0025CB34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E2F0 RID: 58096 RVA: 0x0025E93C File Offset: 0x0025CB3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E2F1 RID: 58097 RVA: 0x0025E948 File Offset: 0x0025CB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E2F2 RID: 58098 RVA: 0x0025E9A0 File Offset: 0x0025CBA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E2F3 RID: 58099 RVA: 0x0025E9F8 File Offset: 0x0025CBF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyAddBuildDynamicBuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E2F4 RID: 58100 RVA: 0x0025EA48 File Offset: 0x0025CC48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E2F5 RID: 58101 RVA: 0x0025EA54 File Offset: 0x0025CC54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BuffId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040059C0 RID: 22976
		private static readonly MessageParser<TrainPartyAddBuildDynamicBuffScRsp> _parser = new MessageParser<TrainPartyAddBuildDynamicBuffScRsp>(() => new TrainPartyAddBuildDynamicBuffScRsp());

		// Token: 0x040059C1 RID: 22977
		private UnknownFieldSet _unknownFields;

		// Token: 0x040059C2 RID: 22978
		public const int RetcodeFieldNumber = 1;

		// Token: 0x040059C3 RID: 22979
		private uint retcode_;

		// Token: 0x040059C4 RID: 22980
		public const int BuffIdFieldNumber = 6;

		// Token: 0x040059C5 RID: 22981
		private uint buffId_;
	}
}
